package com.xxx.meter.app;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import com.xxx.meter.model.utils.ExceptionUtil;

import java.util.Random;

public class App extends Application {

    @SuppressLint("StaticFieldLeak")
    private static Context context;

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        context = base;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        //初始化全局异常捕获
//        ExceptionUtil.init();
    }

    public static Context getContext() {
        return context;
    }

}
